package com.kehutong.payfees.entity.receipt;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.bean.valid.CheckField;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

/**
 * @program: kht
 * @description: 票据模板管理
 * @author: joneron
 * @create: 2021/5/28
 **/
@Table(value="t_charge_receipt_temp", comment="票据模板表", multi = true, idType = IDType.TIMESTAMP)
public class ReceiptTemplate extends DataEntity {

    private static final long serialVersionUID = -6610764587152768783L;

    protected ReceiptTemplate(String id) {
        super(id);
    }

    @Column(comment = "模板名称")
    private String templateName;

    @Column(comment = "模板标识")
    private String templateKey;

    @CheckField("内容不能为空")
    @Column(comment="内容", dbType = "TEXT", length = 65535)
    private String content;

    @Column(comment = "状态：0禁用，1启用")
    private boolean status;

    @Column(comment = "修改人")
    private String updateName;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getTemplateKey() {
        return templateKey;
    }

    public void setTemplateKey(String templateKey) {
        this.templateKey = templateKey;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
